import Vue  from 'vue';
import Vuex from 'vuex';
import mutations from './mutations.js'
Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        now:1,
        transitionName:"slideRight",
        id:"",
        books_id:"",
        btn:true,
        books:{


            0:{
                /*picture:"./src/assets/index/wings.png",
                title:"",
                text:[""
                ]*/
            },
            1:{},
            2:{
               
            },
            3:{
               
        }
        },
        books:{

            booo_1:{
                img:"./src/assets/book/s01.jpg",
                title:"自在独行",
                author:"贾平凹",
                sort:"文学传记",
                number:"I100423",
                location:"图书馆2楼T2室",
                inventory:"5"                
            },
            booo_2:{
                img:"./src/assets/book/s02.jpg",
                title:"浮生六记",
                author:"作者2",
                sort:"文学传记",
                number:"I100424",
                location:"图书馆2楼T2室",
                inventory:"7"                
            },
            booo_3:{
                img:"./src/assets/book/s03.jpg",
                title:"沉默的大多数",
                author:"王小波",
                sort:"文学传记",
                number:"I100425",
                location:"图书馆2楼T2室",
                inventory:"2"                
            },
            booo_4:{
                img:"./src/assets/book/s04.jpg",
                title:"沉默的大多数",
                author:"王小波",
                sort:"文学传记",
                number:"I100426",
                location:"图书馆2楼T2室",
                inventory:"2"                
            },
            booo_5:{
                img:"./src/assets/book/s05.jpg",
                title:"撒哈拉的故事",
                author:"三毛",
                sort:"文学传记",
                number:"I100427",
                location:"图书馆2楼T2室",
                inventory:"4"                
            },
            booo_6:{
                img:"./src/assets/book/s06.jpg",
                title:"你是人间的四月天",
                author:"林徽因",
                sort:"文学传记",
                number:"I100428",
                location:"图书馆2楼T2室",
                inventory:"5"                
            },
            booo_7:{
                img:"./src/assets/book/s07.jpg",
                title:"当我跑步时我谈什么",
                author:"村上春树",
                sort:"文学传记",
                number:"I100429",
                location:"图书馆2楼T2室",
                inventory:"1"                
            },
            booo_8:{
                img:"./src/assets/book/s08.jpg",
                title:"皮囊",
                author:"蔡崇达",
                sort:"文学传记",
                number:"I100430",
                location:"图书馆2楼T2室",
                inventory:"0"                
            },
            booo_9:{
                img:"./src/assets/book/s09.jpg",
                title:"妖怪大全",
                author:"（日）水木茂",
                sort:"人文社科",
                number:"Z100430",
                location:"图书馆3楼Z2室",
                inventory:"1"                
            },
            booo_10:{
                img:"./src/assets/book/s10.jpg",
                title:"生活的艺术",
                author:"林语堂",
                sort:"人文社科",
                number:"Z100417",
                location:"图书馆3楼Z2室",
                inventory:"4"                
            },
            booo_11:{
                img:"./src/assets/book/s11.jpg",
                title:"图解茶经",
                author:"陆羽",
                sort:"人文社科",
                number:"Z100405",
                location:"图书馆3楼Z2室",
                inventory:"2"                
            },
            booo_12:{
                img:"./src/assets/book/s12.jpg",
                title:"突然就走到了西藏",
                author:"陈坤",
                sort:"人文社科",
                number:"Z100410",
                location:"图书馆3楼Z2室",
                inventory:"2"                
            },
            booo_13:{
                img:"./src/assets/book/s13.jpg",
                title:"人类简史",
                author:"亚特伍德",
                sort:"人文社科",
                number:"Z100425",
                location:"图书馆3楼Z2室",
                inventory:"2"                
            },
            booo_14:{
                img:"./src/assets/book/s14.jpg",
                title:"天才在左疯子在右",
                author:"高铭",
                sort:"人文社科",
                number:"Z100433",
                location:"图书馆3楼Z2室",
                inventory:"1"                
            },
            booo_15:{
                img:"./src/assets/book/s15.jpg",
                title:"厚黑学",
                author:"李宗吾",
                sort:"人文社科",
                number:"Z100402",
                location:"图书馆3楼Z2室",
                inventory:"4"                
            },
            booo_16:{
                img:"./src/assets/book/s16.jpg",
                title:"娱乐至死",
                author:"（美）波兹曼",
                sort:"人文社科",
                number:"Z100430",
                location:"图书馆3楼Z2室",
                inventory:"6"                
            }
        },

        userNameBooks:[],
        userNameBooks1:[]

    },

    mutations,

})
